﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace CreditAgricole.Application
{
    public class VOMep : VOBase
    {
        public List<string> Domaine;

        public List<string> Entity;

        public string Description;

        public string MepStatus;

        public string Impact;

        public DateTime DueDate;

        public string Status;

        public string FirstApprover;

        public string SecondApprover;

        public string Workflow;

        public string CurrentApprover = string.Empty;
        
        protected override void SetBaseInformation()
        {
            base.SetBaseInformation();
            properties.Add("Approbateur courant", CurrentApprover);
            properties.Add("Etat du workflow", Workflow);
            properties.Add("Etat de la demande", MepStatus);
        }

        protected override void SetDetailedInformation()
        {
            base.SetDetailedInformation();
            details.Add("Description", Description);
            details.Add("Date d'échéance", DueDate.ToString("dd/MM/yyyy"));
            details.Add("Impact", Impact);
            details.Add("Entités", Entity);
            details.Add("Domaines", Domaine);
        }
    }
}
